.wos-debug {
  width: 100%;
  height: 100%;
  overflow: hidden;

  .side-left {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;

    /* 控制台输出 */
    .console {
      flex: 1;
      width: 100%;
      height: 100%;
      padding: 8px;
      overflow: auto;
      font-size: 14px;
      color: var(--el-text-color-regular);
      text-shadow: none;
      word-break: break-all;
      word-wrap: break-word;
      background-color: var(--wos-app-console-bg);
      border: solid 1px var(--wos-border-color);

      .success {
        color: var(--el-color-success);
      }

      .info {
        color: var(--el-color-info);
      }

      .warning {
        color: var(--el-color-warning);
      }

      .primary {
        position: relative;
        padding-left: 20px;
        color: var(--el-color-primary);

        &::before {
          position: absolute;
          top: 0;
          left: 0;
          color: #fff;
          content: '>_';
        }
      }

      .danger {
        color: var(--el-color-danger);
      }

      div {
        margin-bottom: 6px;
        user-select: text;
      }
    }

    /* 连接区域 */
    .connect {
      display: flex;
      flex-direction: column;
      gap: 8px;
      height: 144px;
      padding: 8px;

      .toolbar {
        display: flex;
        gap: 8px;
      }

      .command-box {
        display: flex;

        .command-input {
          flex: 1;

          .el-textarea__inner {
            height: 96px;
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
          }
        }

        .command-send {
          width: 88px;
          height: 96px;
          border: var(--el-border);
          border-left: 0;
          border-top-left-radius: 0;
          border-bottom-left-radius: 0;

          &:active {
            background-color: var(--wos-button-active-bg-color) !important;
          }
        }
      }
    }
  }

  .content-right {
    flex: 1;
    flex-direction: column;
    padding: 8px;
    text-shadow: none;

    .toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-bottom: 8px;
      font-size: 12px;
      border-bottom: solid 1px var(--wos-border-color);

      &-left {
        display: flex;
        flex: 1;
        gap: 8px;

        .param-item {
          display: flex;
          gap: 8px;
          align-items: center;
        }
      }

      &-right {
        display: flex;
        gap: 8px;
        align-items: center;

        .select-outline {
          border: solid 1px var(--el-border-color);

          &:focus {
            --tw-ring-color: var(--el-border-color);
          }
        }

        .action-button {
          display: flex;
          gap: 8px;

          .el-button + .el-button {
            margin: 0;
          }
        }
      }
    }

    .content {
      flex: 1;
      height: 100%;
      overflow: hidden;
      background-color: var(--wos-box-center-bg);

      .header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px;
        font-size: 12px;
        border-bottom: solid 1px var(--wos-box-border-color);

        &-right {
          flex: 1;

          .toggle-env {
            display: flex;
            gap: 8px;
            align-items: center;
            justify-content: flex-end;
            width: 100%;
            cursor: pointer;

            .el-button + .el-button {
              margin: 0;
            }
          }
        }
      }

      .list {
        height: calc(100% - 42px);
        overflow: auto;

        .hor-minimalist-b {
          width: 100%;
          font-size: 12px;
          text-align: left;
          border-collapse: collapse;
          background-color: var(--el-table-bg-color);

          thead {
            height: 36px;
            font-size: 14px;
          }

          th {
            position: sticky;
            top: 0;
            z-index: 2;
            padding: 4px 6px;
            font-weight: 700;
            color: var(--el-text-color-regular);
            text-align: center;
            background-color: var(--el-table-header-bg-color);
            border-bottom: 2px solid var(--wos-box-border-color);
          }

          tr {
            background-color: var(--el-table-tr-bg-color);

            &:nth-child(even) {
              background-color: var(--el-fill-color-lighter);
            }
          }

          td {
            padding: 4px 6px;
            color: var(--el-text-color-regular);
            border-bottom: 1px solid var(--wos-border-color);

            &.checkbox {
              text-align: center;
            }

            .command {
              display: flex;
              gap: 2px;
              align-items: center;

              label {
                display: block;
                width: 24px;
                text-align: right;
              }

              .el-input__wrapper {
                background-color: transparent;
                border-radius: 0;
                box-shadow: none;
              }
            }

            .action {
              display: flex;
              gap: 8px;
              align-items: center;

              .el-button.btn-remark {
                width: 100px;

                span {
                  display: block;
                  overflow: hidden;
                  text-overflow: ellipsis;
                  white-space: nowrap;
                }
              }
            }
          }

          tbody {
            height: 100%;
            overflow: auto;
          }

          tbody tr:hover {
            background-color: var(--el-table-row-hover-bg-color);

            td {
              color: var(--el-text-color-primary);
              border-bottom: 1px solid var(--wos-box-border-color);
            }
          }
        }
      }
    }
  }
}

.debug-custom-tree {
  width: 296px !important;
  color: var(--el-text-color-regular) !important;

  .custom-tree-node {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
    color: var(--el-text-color-regular);
  }
}
